﻿using Abp.Domain.Entities.Auditing;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace SingleUserMall.Authorization.Users
{
    public class UserRedPacketDetail : FullAuditedEntity<long>
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public long UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual User User { get; set; }
        /// <summary>
        /// 红包金额改变数目
        /// </summary>
        public decimal  ExchangeAmount { get; set; }
        /// <summary>
        /// 红包金额改变原因
        /// </summary>
        public string ExchangeReason{ get; set; }
        /// <summary>
        /// 红包金额改变时间
        /// </summary>
        public DateTime ExchangeTime { get; set; }
    }
}
